package kino.command;

import kino.client.KinoClient;
import kino.common.KinoConstant;
import kino.server.KinoServerRuntime;

/**
 * 还没实现用来唬人的
 */
@KinoCommandEnable
public class InfoCommand extends AbstractKinoCommand{
    @Override
    public String doExecute(KinoClient client, String... argv) {
        return commandEncoder.simpleStringEncode(KinoServerRuntime.getInstance().toString());
    }

    @Override
    public Integer getArgc() {
        return 0;
    }

    @Override
    public String getCommandName() {
        return "info";
    }

    @Override
    public boolean aofFlag() {
        return false;
    }

    @Override
    public boolean hasExtParam() {
        return true;
    }
}
